package com.dubito.dose.feature.medicationconfirm.usecase

import com.dubito.dose.data.repository.MedicationRepository
import com.dubito.dose.domain.model.Medication
import javax.inject.Inject

/**
 * author: LiLiang
 * createTime: 2022/9/5-14:10
 * remark:
 **/
class AddMedicationUseCase @Inject constructor(
    private val repository: MedicationRepository
) {

    suspend fun addMedication(medication: Medication) {
        repository.insertMedication(medication = medication)
    }
}